package src;

/**
 * Created by zy on 2016/2/28.
 */
public class RealData implements Data {
    private final String content;

    public RealData(int count, char c) {
        System.out.println("making RealData(" + count + "," + c + "Begin");
        char[] buffer = new char[count];
        for (int i = 0; i < count; i++) {
            buffer[i] = c;
        }
        try {
            Thread.sleep(10000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("making RealData(" + count + "," + c + "end");
        this.content = new String(buffer);
    }

    public String getContent() {
        return content;
    }
}
